SPRITE ANGLE

This command will return the Angle of the specified sprite.

  Syntax
Return Float=SPRITE ANGLE(Sprite Number)
  Parameters
Sprite Number
Integer
The sprite number

  Returns

The angle value determines how much the sprite is rotated, and ranges from 0 to 359

  Description

The angle value determines how much the sprite is rotated, and ranges from 0 to 359. You should specify the Sprite Number as an integer value.

  Example Code
load image "manwalking.bmp",1
cls
sprite 1,100,100,1
print "sprite angle ",sprite angle(1)
do
loop
end
  See also

SPRITE Commands Menu
Index